#!/bin/sh 

mx_interp -v << EOF

# On receiver: mx_interp -v < rxunex

# open (endpoint) , target, and send/ssend/recv take a "name" argument
# which is an identifier that can be used elsewhere (implicit declaration
# and assignment).  The namespace for each of the three (endpointd, targets, and
# requests) is independent.  e.g. you can have an endpoint named "1" and also
# a requests named "1".
#
# Empty lines or lines beginning with '#' are treated as comments
#
# open name nic_id endpoint_id filter
#	nic_id is MAC address or "any" (this should be index to be symmetrical
#	  with "target" command)
#
# close name
#	closes endpoint "name"
#
# target name hostname nic_index endpoint_id filter
#	nic_index is used to index array from hostname_to_nic_ids
#
# send name endpoint_name target_name len match_data0 match_data1 seed
#	endpoint_name is "name" from open
#	target_name is target for send
#	len is length of buffer to use
#	if seed is not "noseed", use as arg to srandom to fill data buffer
#
# recv name endpoint_name len match_data0 match_data1 match_mask seed
#	endpoint_name is "name" from open
#	len is length of buffer to use
#	match_mask is "none", "b", "c", or "bc"
#	seed is integer or "noseed"
#	  if integer, is used as arg to srandom() to validate bytes transmitted
#
# test request_name
#	spins on request_name in mx_test until complete
#
# sleep request_name timeout
#	waits on request_name in mx_wait with timeout value (milliseconds)
#
# sleep N
#	sleep N seconds
#


open e1 any 1 0x1234
recv r1 e1 16 0 0x123 none 1
test r1
sleep 2
recv r2 e1 16 0 0x124 none 1
test r2
close e1

EOF
